package com.oig.sys.base.dto;

import com.oig.common.validator.GroupEdit;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;

/**
 * @author alex
 * @ClassName HarborAssociationDto.java
 * @Description 港口映射关联管理Dto
 * @createTime 2023/8/29
 */
@Schema
@Data
public class HarborAssociationDto {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @NotNull(message = "参数错误,主键id不能为空", groups={GroupEdit.class})
    private Integer id;
    @Schema(description = "港口代码")
    private String code;
    @Schema(description = "港口")
    private String name;
    @Schema(description = "映射别名")
    private String spec;

}
